<?php
require_once("./object.class.php");

abstract class User extends Object
{
	protected $name;
	public function __construct($name="")
	{
		parent::__construct();
		$this->name = (string)$name;
	}
	public function __destruct()
	{
	}
	public function getName()
	{
		return $this->name;
	}

}

class AdminUser extends User
{
	function __construct()
	{
//		$name = DB::getInstance()->user['name'];
		$name = 'zwz';
		parent::__construct($name);
	}
}
class GuestUser extends User
{
	function __construct()
	{
		$name = $GLOBALS['Lang']['Guest'];
		parent::__construct($name);
	}
}

class RegisterUser extends User
{
	function __construct()
	{
		$name = DB::getInstance()->user['name'];
		parent::__construct($name);
	}
}

class BannedUser extends RegisterUser
{
	function __construct()
	{
		parent::__construct();
	}
}

class UserFactory
{
	
}

?>